﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YmtAuth.Domain.Model.Safe
{
  public  class DeviceTokenAuthEntity
    {
      public int UserId { get; private set; }
      public string DeviceId { get; private set; }
      public byte Type { get; private set; }
      public DateTime CreatDateTime { get; private set; }
      public DateTime LastAuthTime { get; private set; }

      public DeviceTokenAuthEntity(int userid, string deviceId, byte type = 0)
      {
          this.UserId = userid;
          this.DeviceId = deviceId;
          this.Type = type;
          this.CreatDateTime=DateTime.Now;
          this.LastAuthTime=DateTime.Now;
      }

      protected DeviceTokenAuthEntity()
      {
      }
    }
}
